ubg_health_create_icon
Syntax:
ubg_health_create_icon(layer, sprite, x, y, health_min, health_max, columns, padding, event)
Arguments:
| Argument Name | Type | Description | 
|---|---|---|
| layer | layer_id | id or name of the layer to create the healthbar on | 
| sprite | sprite | id of the sprite to use as the health icon | 
| x | real | x-position to create the healthbar at | 
| y | real | y-position to create the healthbar at | 
| health_min | real | minimum value that the health can be | 
| health_max | real | maximum value that the health can be | 
| columns | real | number of columns to allow (-1 = unlimited) | 
| padding | real | padding, in pixels, between each icon | 
| event | UBG_HEALTH_RENDER_EVENT | enum value from UBG_HEALTH_RENDER_EVENT specifying to render in draw or gui | 
Returns: (real)
Description:
Loading page...
